<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
	<title>文章列表</title>
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />


<!-- 新模板 -->
<link rel="shortcut icon" href="<c:url value='/template/new_muban/images/favicon.ico'/>" type="image/x-icon"/>

<!-- 最新导入 -->
<script type="text/javascript" src="<c:url value='/template/new_muban/js/jquery-min-1.7.js'/>"></script>
<link rel="stylesheet" href="<c:url value='/template/new_muban/css/font.css'/>">
<link rel="stylesheet" href="<c:url value='/template/new_muban/css/xadmin.css'/>">   
<script src="<c:url value='/template/new_muban/lib/layui/layui.js'/>" charset="utf-8"></script> 
<script type="text/javascript" src="<c:url value='/template/new_muban/js/xadmin.js'/>"></script>

<link rel="stylesheet" href="<c:url value='/template/new_muban/css/login.css'/>">


<!-- 导出到Excal -->
<script src="<c:url value='/template/lead_into/js/jquery.table2excel.js'/>"></script> 



<style type="text/css">
	/*圆形头像  */
	/* #divcss5{ margin:10px auto}  */
	#divcss5 img{ border-radius:50%} 
	.x-so input.layui-input {
    	width: 150px;
	}
	/**
	图片呼吸效果
	*/
	table img {
	/* width: 140px;
	height: 140px; */
	box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
	-webkit-transition: all ease .3s;
	transition: all ease .5s;
	}
	table img:hover {
		-webkit-transform: scale(1.05);
		transform: scale(2.05);
		box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
		border-radius: 50%
	}
</style>
</head>
  <body>
        <div class="x-nav">
          <span class="layui-breadcrumb">
            <a href="">首页</a>
            <a href="">演示</a>
            <a>
              <cite>导航元素</cite></a>
          </span>
          <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
            <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
        </div>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body "><!-- onsubmit="return verifyDate();" -->
                             <form class="layui-form layui-col-space5"  action="<c:url value='/selectAllArticle.do'/>" method="get">
                                <%-- <div class="layui-inline layui-show-xs-block">
                                    <input type="text" name="nickname" value="${page.nickname}" placeholder="请输入微信昵称" autocomplete="off" class="layui-input">
                                </div>
                                <div class="layui-inline layui-show-xs-block">
                                    <input type="text" name="ho_phone" value="${page.ho_phone}"  placeholder="请输入手机号" autocomplete="off" class="layui-input">
                                </div>
                                <div class="layui-inline layui-show-xs-block">
                                    <input type="text" name="gttl_name" value="${page.gttl_name}"  placeholder="请输入车型名称" autocomplete="off" class="layui-input">
                                </div>
                            
                                <div class="layui-inline layui-show-xs-block">
                                    <input type="text" name="last_nickname" value="${page.last_nickname}"  placeholder="订单推荐人昵称" autocomplete="off" class="layui-input">
                                </div>
                                
                                
                                <div class="layui-input-inline layui-show-xs-block">
                                    <select name="ho_status">
                                        <option value="">订单状态</option>
                                        <option value="0">待支付</option>
                                        <option value="1">服务中</option>
                                        <option value="2">订单完成</option>
                                        <option value="3">订单作废</option>
                                    </select>
                                </div>
                             
                                
                                
                                <div class="layui-inline layui-show-xs-block">
                                    <input class="layui-input" value="${page.start}"  autocomplete="off" readonly="readonly" placeholder="开始日" name="start" id="start">
                                </div>
                                <div class="layui-inline layui-show-xs-block">
                                    <input class="layui-input" value="${page.end}"  autocomplete="off" readonly="readonly" placeholder="截止日" name="end" id="end">
                                </div> --%>
                                <div class="layui-input-inline layui-show-xs-block">
                                    <select name="page_num">
                                        <option value="">单页查询数量</option>
                                        <option value="20">20</option>
                                        <option value="30">30</option>
                                        <option value="50">50</option>
                                        <option value="80">80</option>
                                        <option value="100">100</option>
                                    </select>
                                </div>
                                <div class="layui-inline layui-show-xs-block">
                                    <button class="layui-btn"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
                                </div>
                            </form> 
                        </div> 
                        
                        
                         <div class="layui-card-header">
                           <!--  <button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button>
                            toExcel -->
                            <button class="layui-btn" onclick="xadmin.open('新增文章','<c:url value='/preAddArticle.do'/>')"><i class="layui-icon"></i>新增文章</button>
                        </div> 
                        
                       <%--  <div class="layui-card-header">
                           
                            <a class="layui-btn"  href="<c:url value='/selectAllUserByOrder.do'/>"><i class="layui-icon"></i>新增上传</a>
                        </div> --%>
                        <div class="layui-card-body layui-table-body layui-table-main">
                            <table class="layui-table layui-form" id="x-img">
                                <thead>
                                  <tr>
                                  <th>文章id</th>
                                    <th>文章标题</th>
                                   <th>缩略图</th>
                                   <th>文章类型</th> 
                                   <th>状态</th>
                              <!--      <th>访问量</th>-->
                                   <th>排序</th> 
                                   <th>创建时间</th>
                                   <th>操作</th>
                                   </tr>
                                </thead>
                                <tbody>
                                <c:if test="${allArticle == null}" >
                                <tr>
                                   <td colspan="8">无数据</td>
                                 </tr>
                                </c:if>
                                <c:if test="${allArticle != null}" >
                                	<c:forEach items="${allArticle}" var="article">
                                  <tr>
                                   <td>${article.a_id}</td>
                                   <td>${article.a_title}</td>
	                                   <td>
		                                   <div id="">
		                           
											<img width="50px" src="${article.a_wb_img}" alt="${article.a_title}">  
									
	            							</div>
	                                   </td>
	                                  
	                                  
	                                	<%-- <c:if test="${article.a_type == 1}">滚动</c:if>
	                                	<c:if test="${article.a_type == 0}">不滚动</c:if> --%>
	                                <%-- <td>
	                                	
	                                	<c:forEach items="${article.a_type}" var="at">
	                                		<c:forEach items="${allModule}" var="modu">
	                                			<c:if test="${modu.fm_id == at}">${modu.fm_name}</c:if>
	                                		</c:forEach>
	                                	</c:forEach>
	                                	
	                                	
	                                </td> --%>
	                                <td>
	                                	<c:if test="${article.a_type == 0}">普通文章</c:if>
	                                	<c:if test="${article.a_type == 1}">公司介绍</c:if>
	                                	<c:if test="${article.a_type == 2}">老师介绍</c:if>
	                                	
	                                </td>
	                                <td>
	                                	<c:if test="${article.a_status == 0}">正常</c:if>
	                                	<c:if test="${article.a_status == 1}">下架</c:if>
	                                </td>
	                           <%--        <td>${article.a_truecount}</td>
	                             --%>
	                             <td>${article.sort}</td>
	                                   <td>${article.a_addtime}</td>
	                              
	                              
	                                  <td class="td-manage">
	                             
									 <div class="layui-btn-group">
		
					<a class="layui-btn" onclick="xadmin.open('修改文章 - ${article.a_title}','<c:url value='/preSelectArticleDetails.do?a_id=${article.a_id}'/>')"><i class="layui-icon"></i>修改</a>
			    	<%-- <a class="layui-btn"  href="<c:url value='/selectAllGoodsByShop.do?b_id=${shop.b_id}'/>"><i class="layui-icon"></i>商品管理</a> --%>
	              	<c:if test="${article.a_status == 1 }">
                      				<button onclick="updateArticleStatus('${article.a_id}',0);" class="layui-btn layui-btn-sm layui-btn-normal" title="恢复"><span>恢复</span></button>
                      			</c:if> 
                      			<c:if test="${article.a_status == 0}">
                      				<button onclick="updateArticleStatus('${article.a_id}',1);" class="layui-btn layui-btn-sm layui-btn-danger" title="下架"><span>下架</span></button>
                      			</c:if>
	              </div> 
									</td> 
                                  <tr>
                                  </c:forEach>
                                
                                </c:if>
                                
                                
                                
                                  
                                </tbody>
                            </table>
                        </div>
                        <div class="layui-card-body ">
                           <c:if test="${allArticle != null}" >
                           		 <div class="page">
							<div style="text-align: center;">
								<span style="border: 0px solid #E2E2E2;">${page.page_num}条每页/共${page.allArticleItem}条
									&nbsp;&nbsp; 第${page.number}页/共${page.sumNumber}页</span>
							</div>
							<!-- 分页查询-->
							<div>
								<!-- 页码跳转 -->
								<!-- <c:if test="${page.sumNumber > 1}">
									<input type="text" name="number" class="layui-input inputNum"
										style="display: inline; width: 50px;"
										onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this)"
										onblur="this.v();" placeholder="页码" />
									<input type="button" class="layui-btn"
										onclick="checkNum(${page.sumNumber},'${page.page_num}');"
										value="跳转" />
								</c:if> -->
								<!-- 首页/上一页 -->
								<c:if test="${page.number > 1}">
									<a class="prev"
										href="<c:url value='/selectAllArticle.do?number=1&page_num=${page.page_num}'/>">首页</a>
									<a class="prev"
										href="<c:url value='/selectAllArticle.do?number=${page.number-1}&page_num=${page.page_num}'/>">&lt;&lt;</a>
								</c:if>
								<!-- 计算页码列表 -->
								<c:choose>
									<%--使用c标签choose   when  otherwise   类似if else--%>
									<c:when test="${page.sumNumber<=5}">
									<%-- 设置Var变量    默认在Page域中   本页面可直接使用--%>
										<c:set var="begin" value="1" />
										<c:set var="end" value="${page.sumNumber}" />
									</c:when>

									<c:otherwise>
										<!-- 当总页数>5 通过计算得出begin和end 在第3位 -->
										<c:set var="begin" value="${page.number-2}" />
										<c:set var="end" value="${page.number+2}" />
										<!-- 头溢出-->
										<c:if test="${begin<1}">
											<c:set var="begin" value="1" />
											<c:set var="end" value="${page.sumNumber}" />
										</c:if>
										<!-- 为1显示5个 -->
										<c:if test="${begin==1}">
											<c:set var="begin" value="1" />
											<c:set var="end" value="5" />
										</c:if>
										<!-- 尾溢出-->
										<c:if test="${end>page.sumNumber}">
											<c:set var="end" value="${page.sumNumber}" />
											<c:set var="begin" value="${page.sumNumber-4}" />
										</c:if>
									</c:otherwise>
								</c:choose>
								<!-- 循环遍历显示页码列表 -->
								<c:forEach var="i" begin="${begin}" end="${end}">
									<c:choose>
										<%-- 用i表示页码   如果i等于当前页码   不能点击 --%>
										<c:when test="${i eq page.number}">
											<span class="current">${i}</span>
										</c:when>
										<c:otherwise>
											<!-- 页码为超链接-->
											<a class="num"
												href="<c:url value='/selectAllArticle.do?number=${i}&page_num=${page.page_num}'/>">${i}</a>
										</c:otherwise>
									</c:choose>
								</c:forEach>
								<!-- 计算尾部页码 -->
								<c:if test="${page.number < page.sumNumber}">
									<a class="next"
										href="<c:url value='/selectAllArticle.do?number=${page.number+1}&page_num=${page.page_num}'/>">&gt;&gt;</a>

									<a class="next"
										href="<c:url value='/selectAllArticle.do?number=${page.sumNumber}&page_num=${page.page_num}'/>">尾页</a>
								</c:if>
								<!-- <a class="prev" href="">&lt;&lt;</a>
          <a class="num" href="">1</a>
          <span class="current">2</span>
          <a class="num" href="">3</a>
          <a class="num" href="">489</a>
          <a class="next" href="">&gt;&gt;</a> -->

							</div>
						</div>
                           </c:if>
                          
                           
            </div>
        </div> 
    </body>
    
    <script>
      layui.use(['laydate','form'], function(){
        var laydate = layui.laydate;
        var  form = layui.form;


        // 监听全选
        form.on('checkbox(checkall)', function(data){

          if(data.elem.checked){
            $('tbody input').prop('checked',true);
          }else{
            $('tbody input').prop('checked',false);
          }
          form.render('checkbox');
        }); 
        
        //执行一个laydate实例
        laydate.render({
          elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
          elem: '#end' //指定元素
        });


      });

       /*用户-停用*/
      function member_stop(obj,id){
          layer.confirm('确认要停用吗？',function(index){

              if($(obj).attr('title')=='启用'){

                //发异步把用户状态进行更改
                $(obj).attr('title','停用')
                $(obj).find('i').html('&#xe62f;');

                $(obj).parents("tr").find(".td-status").find('span').addClass('layui-btn-disabled').html('已停用');
                layer.msg('已停用!',{icon: 5,time:1000});

              }else{
                $(obj).attr('title','启用')
                $(obj).find('i').html('&#xe601;');

                $(obj).parents("tr").find(".td-status").find('span').removeClass('layui-btn-disabled').html('已启用');
                layer.msg('已启用!',{icon: 5,time:1000});
              }
              
          });
      }

      /*用户-删除*/
      function member_del(obj,id){
          layer.confirm('确认要删除吗？',function(index){
              //发异步删除数据
              $(obj).parents("tr").remove();
              layer.msg('已删除!',{icon:1,time:1000});
          });
      }



      function delAll (argument) {
        var ids = [];

        // 获取选中的id 
        $('tbody input').each(function(index, el) {
            if($(this).prop('checked')){
               ids.push($(this).val())
            }
        });
  
        layer.confirm('确认要删除吗？'+ids.toString(),function(index){
            //捉到所有被选中的，发异步进行删除
            layer.msg('删除成功', {icon: 1});
            $(".layui-form-checked").not('.header').parents('tr').remove();
        });
      }
    </script>
    
    
    
  
    <script>
    
    
    
    
    
    
   
   /*  
    layui.use('layer', function(){
        layer.msg('已删除!',{icon:1,time:10000},function(){
	parent.location.reload();
	let liId = $.cookie('liId');
	let liClass = $.cookie('liClass');
	console.log(liId);
	console.log(liClass);
	$('liId').attr("class","layui-nav-item layui-nav-iteme");
	console.log($(liId).attr("class"));
        	
        });  
    	
    });   */ 
    //时间
      layui.use('laydate', function(){
        var laydate = layui.laydate;
        
        //执行一个laydate实例
        laydate.render({
          elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
          elem: '#end' //指定元素
        });
      });

       /*用户-停用*/
      function member_stop(obj,id){
          layer.confirm('确认要停用吗？',function(index){

              if($(obj).attr('title')=='启用'){

                //发异步把用户状态进行更改
                $(obj).attr('title','停用')
                $(obj).find('i').html('&#xe62f;');

                $(obj).parents("tr").find(".td-status").find('span').addClass('layui-btn-disabled').html('已停用');
                layer.msg('已停用!',{icon: 5,time:1000});

              }else{
                $(obj).attr('title','启用')
                $(obj).find('i').html('&#xe601;');

                $(obj).parents("tr").find(".td-status").find('span').removeClass('layui-btn-disabled').html('已启用');
                layer.msg('已启用!',{icon: 5,time:1000});
              }
              
          });
      }

      /*用户-开通取消操作*/
      function member_stop_caozuo(obj,id){
              if($(obj).attr('title')=='停用'){
		          layer.confirm('确认要停用吗？',function(index){
	                //发异步把用户状态进行更改
	                $(obj).attr('title','开通')
	                $(obj).find('i').html('&#xe62f;');
	                $(obj).parents("tr").find(".td-status").find('span').addClass('layui-btn-disabled').html('未开通');
	                layer.msg('已停用!',{icon: 5,time:1000});
	                
	                
	                
	          	});
              }else{
            	 layer.confirm('确认要开通吗？',function(index){
	                $(obj).attr('title','停用')
	                $(obj).find('i').html('&#xe601;');
	                $(obj).parents("tr").find(".td-status").find('span').removeClass('layui-btn-disabled').html('已开通');
	                layer.msg('已开通!',{icon: 6,time:1000});
              	});
              }
      }

      /*用户-删除*/
      function member_del(obj,id){
          layer.confirm('确认要删除吗？',function(index){
              //发异步删除数据
              $(obj).parents("tr").remove();
              layer.msg('已删除!',{icon:1,time:1000});
          });
      }



      function delAll (argument) {

        var data = tableCheck.getData();
  
        layer.confirm('确认要删除吗？'+data,function(index){
        
            //捉到所有被选中的，发异步进行删除
            layer.msg('删除成功', {icon: 1});
            $(".layui-form-checked").not('.header').parents('tr').remove();
        });
      }
    </script>

     
     <!-- 1 绿√  2 红X  3 黄?  4  灰锁  5  红哭脸  6 绿笑脸 7 黄!  --> 
    <!-- //页面跳转 -->
 <script type="text/javascript">
	function checkNum(sumNumber,page_num){
		var num = $(".inputNum").val();
		//alert(sumNumber+"/"+num+"/"+s_name+"/"+s_contact+"/"+s_phone+"/"+openid+"/"+pay_status+"/"+start+"/"+end+"/"+page_num );
		if(!isNaN(num)){      
			//alert("是数字类型!");
			if (num>sumNumber) {
				//alert("超出查询范围");
				layer.alert('超出查询范围!!',{icon:2,time:2000});
				return false;
			} else if (num<1) {
				//alert("请输入正确的页码");
				layer.alert('请输入正确的页码!',{icon:2,time:2000});
				return false;
			} else {
		 		window.location.href = "<c:url value='/findAllOrder.do?&number="+num+"&page_num="+page_num+"'/>";
			}
		}else{      
			//alert("不是数字类型!");
			layer.alert('不是数字类型!',{icon:2,time:2000});
			return false;
		}
	}
	
/*
 * 验证 查询时间大小 
 */	
   function verifyDate() {
	var start = $("#start").val();
	var end = $("#end").val();
	//alert(start > end);
	if(start > end){
		//alert("开始日期不能大于结束日期!");
		layer.alert('开始日期不能大于结束日期!',{icon:2,time:3000});
		return false;		
	}
	if(start != '' || end != ''){
		if($("#date_type").val() == ''){
			layer.msg('请选择日期类型!',{icon:2,time:3000});
			return false;		
		}
	}
} 
</script>      
      <script type="text/javascript">
	function toExcel() {
		var myDate = new Date();//获取系统当前时间
		myDate = myDate.toLocaleString( ); //获取日期与时间
		//alert(myDate.toLocaleString( ));
		/* $('table').find("tbody").find('tr').find('td:last').hide(); */
		var aa=$('table').find("tbody").find('tr').find('td:last').index();
		/* alert(aa); */
		$(".table2excel").table2excel({
			//隐藏行
			exclude: ".noExl",
			//导出的Excel文档的名称
			name: "Excel Document Name",
			// Excel文件的名称
			filename: "订单列表-"+myDate+".xls",
			//隐藏列
			columns: aa,
		     //是否排除导出图片
			exclude_img: true,
			//是否排除导出超链接
			exclude_links: true,
		    //是否排除导出输入框中的内容
			exclude_inputs: true
		});
	}
</script>   


 <script type="text/javascript">
 
 /*
	删除上传的车型
	*/
	  function del_clue(obj,c_id){
     layer.confirm('确认要删除吗？',function(index){
     	
         //发异步删除数据
     	$.ajax({
             type: "POST",
             async : false, // 注意此处需要yi步  
             url:  "<c:url value='/delClue.do'/>",
             data: {"c_id":c_id},
             success: function(data){
                 if (data == 0) {
                 	layer.msg('作废失败,错误未知!',{icon: 2,time:3000});      
                 } else  {
                	 	layer.msg("已作废", {icon: 6,time:2000},function () {
                         //重新加载页面
                         location.reload();
                	 		 //发异步删除数据
                           // $(obj).parents("tr").remove();
                     });
		           } 
            }
	        }); 
     });
 	}

	// 图片弹出层
	  layui.use('layer', function(){
	      $ = layui.jquery;//jquery
	    layer = layui.layer;//弹出层

	    //以上模块根据需要引入
	  	//轮播图弹出
	      layer.ready(function(){ //为了layer.ext.js加载完毕再执行
	        layer.photos({
	          photos: '#x-img'
	          //,shift: 5 //0-6的选择，指定弹出图片动画类型，默认随机
	        });
	      });

	  }); 
 </script> 
  <script type="text/javascript">
  
  /* 修改上下架状态 */
  function update_goods_status(obj,goods_id,grounding){
	  var msg = "确认要修改吗？";
	  var s_msg = "修改成功";
	  var e_msg = "修改失败";
	  if(grounding == 0){
		  msg = "确认要下架吗？";
		  s_msg = "下架成功";
		  e_msg = "下架失败";
	  }
	  if(grounding == 1){
		  msg = "确认要上架吗？";
		  s_msg = "上架成功";
		  e_msg = "上架失败";
	  }
	     layer.confirm(msg,function(index){
	     	
	         //发异步删除数据
	     	$.ajax({
	             type: "POST",
	             async : false, // 注意此处需要yi步  
	             url:  "<c:url value='/updateSupplyGoodsStatus.do'/>",
	             data: {"goods_id":goods_id,"grounding":grounding},
	             success: function(data){
	                 if (data == 0) {
	                 	layer.msg(e_msg,{icon: 2,time:3000});      
	                 } else  {
	                	 	layer.msg(s_msg, {icon: 6,time:2000},function () {
	                         //重新加载页面
	                         location.reload();
	                	 		 //发异步删除数据
	                           // $(obj).parents("tr").remove();
	                     });
			           } 
	            }
		        }); 
	     });
	 	}
  
  
  /* 修改上首页状态 */
  function apply_goods_status(obj,goods_id,grounding){
	
	     layer.confirm("确认要申请上首页吗?",function(index){
	     	
	         //发异步删除数据
	     	$.ajax({
	             type: "POST",
	             async : false, // 注意此处需要yi步  
	             url:  "<c:url value='/applyJKIndexGoods.do'/>",
	             data: {"goods_id":goods_id},
	             success: function(data){
	                 if (data == 0) {
	                 	layer.msg("申请失败",{icon: 2,time:2000});      
	                 } else  {
	                	 	layer.msg("申请成功", {icon: 6,time:1000},function () {
	                         //重新加载页面
	                         location.reload();
	                	 		 //发异步删除数据
	                           // $(obj).parents("tr").remove();
	                     });
			           } 
	            }
		        }); 
	     });
	 	}
  
  
  
  /**
  修改文章状态
  */
  function updateArticleStatus(a_id,a_status){
	     layer.confirm('确认要修改吗？',function(index){
	     	
	         //发异步删除数据
	     	$.ajax({
	             type: "POST",
	             async : false, // 注意此处需要yi步  
	             url:  "<c:url value='/updateArticle.do'/>",
	             data: {"a_id":a_id,"a_status":a_status},
	             success: function(data){
	                 if (data == 0) {
	                 	layer.msg('修改失败,错误未知!',{icon: 2,time:3000});      
	                 } else  {
	                	 	layer.msg("修改成功", {icon: 6,time:2000},function () {
	                         //重新加载页面
	                         location.reload();
	                	 		 //发异步删除数据
	                           // $(obj).parents("tr").remove();
	                     });
			           } 
	            }
		        }); 
	     });
	 	}
  </script>
</html>
